import { Controller, Get } from '@nestjs/common';
import { RecommendsService } from './recommends.service';
import { ApiProperty } from '@nestjs/swagger';
import { Public } from 'src/common/decorators/public.decorator';

@Controller('recommends')
export class RecommendsController {
  constructor(private readonly recommendsService: RecommendsService) {}

  @Get()
  @Public()
  @ApiProperty({ description: '主页推荐服务展示' })
  async recommends() {
    return await this.recommendsService.recommendService();
  }
}
